package com.ruoyi.personnel.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.personnel.mapper.SysUserFormalMapper;
import com.ruoyi.personnel.domain.SysUserFormal;
import com.ruoyi.personnel.service.ISysUserFormalService;

/**
 * 转正信息管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-19
 */
@Service
public class SysUserFormalServiceImpl implements ISysUserFormalService 
{
    @Autowired
    private SysUserFormalMapper sysUserFormalMapper;

    /**
     * 查询转正信息管理
     * 
     * @param id 转正信息管理主键
     * @return 转正信息管理
     */
    @Override
    public SysUserFormal selectSysUserFormalById(Long id)
    {
        return sysUserFormalMapper.selectSysUserFormalById(id);
    }

    /**
     * 查询转正信息管理列表
     * 
     * @param sysUserFormal 转正信息管理
     * @return 转正信息管理
     */
    @Override
    public List<SysUserFormal> selectSysUserFormalList(SysUserFormal sysUserFormal)
    {
        return sysUserFormalMapper.selectSysUserFormalList(sysUserFormal);
    }

    /**
     * 新增转正信息管理
     * 
     * @param sysUserFormal 转正信息管理
     * @return 结果
     */
    @Override
    public int insertSysUserFormal(SysUserFormal sysUserFormal)
    {
        return sysUserFormalMapper.insertSysUserFormal(sysUserFormal);
    }

    /**
     * 修改转正信息管理
     * 
     * @param sysUserFormal 转正信息管理
     * @return 结果
     */
    @Override
    public int updateSysUserFormal(SysUserFormal sysUserFormal)
    {
        return sysUserFormalMapper.updateSysUserFormal(sysUserFormal);
    }

    /**
     * 批量删除转正信息管理
     * 
     * @param ids 需要删除的转正信息管理主键
     * @return 结果
     */
    @Override
    public int deleteSysUserFormalByIds(Long[] ids)
    {
        return sysUserFormalMapper.deleteSysUserFormalByIds(ids);
    }

    /**
     * 删除转正信息管理信息
     * 
     * @param id 转正信息管理主键
     * @return 结果
     */
    @Override
    public int deleteSysUserFormalById(Long id)
    {
        return sysUserFormalMapper.deleteSysUserFormalById(id);
    }
}
